import { createApp } from 'vue'
import './style.css'
import App from './App.vue'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import router from './router'
import store from './store'
import * as ElIcons from '@element-plus/icons-vue'
/*用来解决分页显示中文的*/
import locale from 'element-plus/lib/locale/lang/zh-cn'

/*createApp(App)
    .use(store)
    .use(router)
    .use(ElementPlus,{ locale })
    .mount('#app')*/
const app = createApp(App)
app.use(router)
app .use(store)
app.use(ElementPlus, { locale })
app.mount('#app')

for (const name in ElIcons)
{
    app.component(name,ElIcons[name])
}

